package com.example.dependencyinjection.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@Component
@AllArgsConstructor
public class User {
  private Integer id;
  private String name;
  private Integer age;

    public User() {
        this.id=1;
        this.name="张三";
        this.age=18;
    }
}
